package org.xg.study.pd.test;

import com.alibaba.fastjson.JSONObject;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.xg.study.pd.LotteryResult;
import org.xg.study.pd.LotteryService;
import org.xg.study.pd.LotteryServiceImpl;

/**
 * @author CMG
 * @version 1.0
 * @description
 * @cLassName ApiTest18_01
 * @date 2021/9/17 10:10
 **/
public class ApiTest18_01 {
    private Logger logger = LoggerFactory.getLogger(ApiTest18_01.class);

    @Test
    public void test_lottery() {
        LotteryService lotteryService = new LotteryServiceImpl();
        LotteryResult lotteryResult = lotteryService.doDraw("2135469752");
        logger.info("测试结果：{}", JSONObject.toJSONString(lotteryResult));
    }
}
